import request from '@/utils/request'

/**
 * 获取流程表单数据
 * @param {*} params
 */
export function getOpenFormData (params) {
  return request.get('/flowengine/form/openForm', { params })
}

/**
 * 获取预览表单数据
 * @param {*} params
 */
export function getPreviewFormData (params) {
  return request.post('/formengine/designer/getFormDataModel', params)
}

/**
 * 获取组织项结构
 */
export function getOrganTree () {
  return request.post('/mainweb/organ/getOrganTree')
}